• Welcome to The Cave of Dragonflies forums, where the smallest bugs live alongside the strongest dragons.

    Guests are not able to post messages or even read certain areas of the forums. Now, that's boring, don't you think? Registration, on the other hand, is simple, completely free of charge, and does not require you to give out any personal information at all. As soon as you register, you can take part in some of the happy fun things at the forums such as posting messages, voting in polls, sending private messages to people and being told that this is where we drink tea and eat cod.

    Of course I'm not forcing you to do anything if you don't want to, but seriously, what have you got to lose? Five seconds of your life?

Search results

  1. Peter Shadeslayer

    Another Styleswitcher fail

    I honestly don't know why this is giving you so much trouble. O.o That code works; I copied it directly from mine.
  2. Peter Shadeslayer

    Another Styleswitcher fail

    Each page: <?php $style[1] = 'http://ditto.ifastnet.com/stylesheet.css'; $style[2] = 'http://ditto.ifastnet.com/stylesheet2.css'; $style[3] = 'http://ditto.ifastnet.com/stylesheet3.css'; $style[4] = 'http://ditto.ifastnet.com/stylesheet4.css'; if(!isset($_COOKIE['style'])) {...
  3. Peter Shadeslayer

    Another Styleswitcher fail

    You're right, negate that option. I suppose debugging code at 2 AM is a bad idea.
  4. Peter Shadeslayer

    Another Styleswitcher fail

    The reason the other pages aren't working right is you haven't changed the code to what I emailed you, lol. :] I changed it around a lot. =O Maybe make sure the stylesheet HTML declaration is as follows: <link rel="stylesheet" href="<?php echo $style[$no]; ?>" type="text/css" /> My guess is...
  5. Peter Shadeslayer

    Another Styleswitcher fail

    Nonononono. XD You have the links like this: <a href="http://ditto.ifastnet.com/styleswitcher2.php?style=2">Link</a> <a href="http://ditto.ifastnet.com/styleswitcher3.php?style=3">Link</a> You only have to put the style number after the 'style=' part, not after 'styleswitcher'. :D
  6. Peter Shadeslayer

    Another Styleswitcher fail

    Wherever the links are to change styles. Example: <a href="http://ditto.ifastnet.com/styleswitcher.php?style=1">Style 1</a> <a href="http://ditto.ifastnet.com/styleswitcher.php?style=2">Style 2</a> etc... Upon clicking those, the style will be changed. :D
  7. Peter Shadeslayer

    Another Styleswitcher fail

    Ok, the URLs to change styles should be like this: http://ditto.ifastnet.com/styleswitcher.php?style=2 That'll change it and cookie it and everything. :D
  8. Peter Shadeslayer

    Another Styleswitcher fail

    You can email me Ditto, or talk to me on Google or Facebook. [I'm Peter from T.I.T.]
  9. Peter Shadeslayer

    Another Styleswitcher fail

    <head> <?php if(isset($_COOKIE['style']){ $no = intval($_COOKIE['style']); $style['1'] = 'http://ditto.ifastnet.com/stylesheet.css'; $style['2'] = 'http://ditto.ifastnet.com/stylesheet2.css'; $style['3'] = 'http://ditto.ifastnet.com/stylesheet3.css'; $style['4'] =...
  10. Peter Shadeslayer

    Another Styleswitcher fail

    Oops, I forgot to take out the line... let me fix it. <head> <?php if(isset($_COOKIE['style']){ $no = intval($_COOKIE['style']); $style['1'] = 'http://ditto.ifastnet.com/stylesheet.css'; $style['2'] = 'http://ditto.ifastnet.com/stylesheet2.css'; $style['3'] =...
  11. Peter Shadeslayer

    Another Styleswitcher fail

    Why don't you just do this in your head element? <link rel="stylesheet" type="text/css" href="<?php echo $style['no']; ?>" /> I wrote a style switcher that was much more simple... the PHP code in each page would just go above the stylesheet script. For example: <head> <?php...
Back
Top Bottom